package com.xdqzy.baseline.demo.controller.param.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Title: 创建商品请求
 * @ClassName : com.xdqzy.baseline.demo.controller.param.req.AddProductReq.java
 * @Description :
 *
 * @author : winter
 * @date :  2020-11-15 22:57
 * @version V1.0
 */
@Data
@ApiModel("创建商品请求")
public class AddProductReq {

    @NotEmpty(message = "商品名称不能为空")
    @ApiModelProperty("商品名称")
    private String name;

    @NotEmpty(message = "商品类型编码不能为空")
    private String productType;

    @NotNull(message = "商品价格不能为空")
    private BigDecimal price;

}
